package cn.anquing.shardingsphere.demo.service.impl;

import cn.anquing.shardingsphere.demo.entity.Demo;
import cn.anquing.shardingsphere.demo.repository.DemoRepository;
import cn.anquing.shardingsphere.demo.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wangqq65
 * @since 2021/9/3 15:52
 */
@Service
public class DemoServiceImpl implements DemoService {

    @Resource
    private DemoRepository demoRepository;


    @Override
    public List<Demo> listAll() {
        return demoRepository.findAll();
    }
}
